<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        if (config('app.env') == 'dev' || config('app.env') == 'testing') {
            $this->call(
                [
//                    PermissionsSeeder::class,
                    BrandSeeder::class,
                    ShopSeeder::class,
                    ProductsSeeder::class,
//                    MenusSeeder::class,
//                    RoleSeeder::class,
//                    UserRoleSeeder::class,
//                    ShopSeeder::class,
//                    ConfigSeeder::class,
                ]
            );
        } else {
            die('非测试环境, 请勿操作');
        }

        // \App\Models\User::factory(10)->create();
    }
}
